import layout from '@/layout/index.vue'
export default {
  path: '/employee',
  name: 'employee',
  component: layout,
  children: [
    {
      path: '',
      name: 'employee',
      component: () => import('@/views/employee/Employee.vue'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    {
      // 动态路由！！！！配合路由传参使用！
      // "?"表示参数可以有，也可以没有
      path: '/employee/detail/:id?', // 员工详情地址
      name: 'employeeDetail',
      component: () => import('@/views/employee/Detail.vue'),
      hidden: true, // 隐藏在左侧菜单
      meta: {
        title: '员工详情'
      }
    }
  ]
}

// 只想在左侧菜单显示一级菜单的话，让二级路由只有一个显示在左侧菜单
